<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/22
 * Time: 14:28
 */

namespace app\weixin\controller;


use think\Db;

class SuccessCase extends Base
{
        public function index(){
            $this->assign('title','查看案例');

            //页面主题内容
            $map = 'a.*,b.title';
            $data = Db::table('php_caselist')->alias('a')->join('php_casecate b ','b.id= a.cateid')
                ->field($map)->order('a.id desc')->where(['a.status' => 1])->limit(0,15)->select();
           $this->assign('data',$data);
            return view();
        }
}